/**
 * Created by baowei on 2018/10/17.
 */
import Request from "../../../utils/request.js";
export default class {
  // 获取佣金详情
  static getCommissionDetail(params) {
    return Request({
      // url: "app/commission/commissionDetail",
      url: 'app/commissionToXK/queryCommission',
      type: "POST",
      data: params,
      headers: {
        "Content-type": "application/json"
      },
    })
  }
  // 获取佣金明细列表
  static getCommissionList(params) {
    return Request({
      url: "app/commission/list",
      type: "POST",
      data: params,
      headers: {
        "Content-type": "application/json"
      },
    })
  }
  static flagMoney(params) {
    var accountId = wx.getStorageSync('userId');
    return Request({
      url: "app/wallet/center/getWalletUser",
      type: "POST",
      data: {...params,accountId}
    })
  }
}
